<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>组合修饰符</title>
</head>
<body>
    <div id="app">
        <h1 @click.meta="logWithmeta" @click="logSingle">没有meta别来烦我</h1>
    </div>
    <script type="text/javaScript"  charset="UTF-8" src="../JS文件/vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            methods:{
                logSingle(event){
                    if(!event.metaKey){
                            console.log('-----------------分割线-----------------');
                            console.log('$event.meta:',event.metaKey)
                            console.log('点我干啥，单身汪！')

                    }else{
                        console.log('不错,进步很快！')
                }
            },
            logWithmeta (event){

                console.log('-----------------分割线-----------------');
                console.log('$event.meta:',event.metaKey)
                console.log('按住，是的，按住meta！')

                }

            }

        })
    
    </script>
</body>
</html>